﻿using System.Data.Entity.ModelConfiguration;
using WJ.Infrastructure.DDD;

namespace WJ.Infrastructure.EF
{
    public class MapBase<TEntity> : EntityTypeConfiguration<TEntity> where TEntity : Entity
    {
        public MapBase()
        {
            HasKey(t => t.Id);
         
        }
    }
}
